package com.cutebaby.admin.com.mybatis.service;

import com.cutebaby.admin.com.autowired.Autowired;
import com.cutebaby.admin.com.mybatis.dao.UserMapper;
import com.cutebaby.admin.com.mybatis.entity.User;
import org.springframework.stereotype.Component;

/**
 * @author: xialegemo
 * @description: spring整合mybatis
 * @date： 2020/10/26 22:06
 **/
@Component
public class UserService {
    @Autowired  // 自动注入值
    private UserMapper userMapper; // 值？ mybatis的代理对象

    @Autowired
    private User user;  // User对象---->spring管理---->bean

    public void test(){
    }
}
